import request from "@/utils/request";
export const userRegisterService=({username,password,repassword})=>
    request.post('/api/reg',{
        username,
        password,
        repassword
    })
export const userLoginService=({username,password})=>
     request.post('/api/login',{
        username,
        password
    })
export const userInfoService=()=>{


   return  request.get('/my/userinfo')


  }
  export const userInfoPeopleService=(data)=>request.put('/my/userinfo',data)
  export const userPeopleImgService=(avatar)=>request.patch('/my/update/avatar',avatar)
  export const userPasswordService=(data)=>request.patch('/my/updatepwd',data)
